package com.cdsxt.genCode.vo;

import com.cdsxt.util.StringUtils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GenCodeFieldVo {
	
	private String fieldName;
	private String fieldType;
	private String fieldInfo;
	private String columnName;
	
	//通过已知的属性名转换为列名
	public String getColumnName() {
		if (this.columnName==null) {
			this.columnName=StringUtils.camelToUnderlineStr(this.fieldName);
		}
		return this.columnName;
	}
}
